﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Boss
{
    public class Program
    {
        public static void Main(string[] args)
        {
            OkHeritage ok = new OkHeritage();
            Console.WriteLine("Boss:我的儿砸是张三\n");
            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine("财产转移中~~~\n");
            }
            Console.WriteLine("张三原来有这么多钱:{0}$\n", ok.zhangsanHeritage);
        }
        public class Heritage
        {
            public static long bossHeritage = 1000000000000000000;//遗产公布
        }
        public class OkHeritage : Heritage
        {
            public readonly long zhangsanHeritage = bossHeritage;//遗产转移只读
        }
    }
}
